<?php

class User_View_Helper_User extends Zend_View_Helper_Abstract{
	
	public $userId;
	
	public function User(){
		if(Zend_Auth::getInstance()->getIdentity())
		$this->userId = Zend_Auth::getInstance()->getIdentity()->id; 
		
		return $this;
	}
	
	public function getUser(){
		$data = Doctrine_Model_Users::getUser($this->userId);
		return $data;
	}
}